/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package bbdd.classes;

import java.sql.Timestamp;
import java.text.SimpleDateFormat;
import java.util.Date;


public class RutaDet2 {
    private String gprmc;
    private Timestamp timeStamp;
    private String validSt;
    private Double currentLat;
    private String ns;
    private Double currentLon;
    private String ew;
    private Double speed;
    private Double trueCourse;
    private Date dataStamp;
    private String crc;
    private int idRuta;

    public RutaDet2() {
    }

    public RutaDet2(String gprmc, Timestamp timeStamp, String validSt, Double currentLat, String ns, Double currentLon, String ew, Double speed, Double trueCourse, Date dataStamp, String crc, int idRuta) {
        this.gprmc = gprmc;
        this.timeStamp = timeStamp;
        this.validSt = validSt;
        this.currentLat = currentLat;
        this.ns = ns;
        this.currentLon = currentLon;
        this.ew = ew;
        this.speed = speed;
        this.trueCourse = trueCourse;
        this.dataStamp = dataStamp;
        this.crc = crc;
        this.idRuta = idRuta;
    }

    public String getGprmc() {
        return gprmc;
    }

    public void setGprmc(String gprmc) {
        this.gprmc = gprmc;
    }

    public Timestamp getTimeStamp() {
        return timeStamp;
    }
    
    public String getTimeStampString() {
        return new SimpleDateFormat("HH:mm:ss.S").format(timeStamp);
    } 
    public void setTimeStamp(Timestamp timeStamp) {
        this.timeStamp = timeStamp;
    }

    public String getValidSt() {
        return validSt;
    }

    public void setValidSt(String validSt) {
        this.validSt = validSt;
    }

    public Double getCurrentLat() {
        return currentLat;
    }

    public void setCurrentLat(Double currentLat) {
        this.currentLat = currentLat;
    }

    public String getNs() {
        return ns;
    }

    public void setNs(String ns) {
        this.ns = ns;
    }

    public Double getCurrentLon() {
        return currentLon;
    }

    public void setCurrentLon(Double currentLon) {
        this.currentLon = currentLon;
    }

    public String getEw() {
        return ew;
    }

    public void setEw(String ew) {
        this.ew = ew;
    }

    public Double getSpeed() {
        return speed;
    }

    public void setSpeed(Double speed) {
        this.speed = speed;
    }

    public Double getTrueCourse() {
        return trueCourse;
    }

    public void setTrueCourse(Double trueCourse) {
        this.trueCourse = trueCourse;
    }

    public Date getDataStamp() {
        return dataStamp;
    }

    public void setDataStamp(Date dataStamp) {
        this.dataStamp = dataStamp;
    }

    public String getCrc() {
        return crc;
    }

    public void setCrc(String crc) {
        this.crc = crc;
    }

    public int getIdRuta() {
        return idRuta;
    }

    public void setIdRuta(int idRuta) {
        this.idRuta = idRuta;
    }
    
}
